package com.mlz.mlzmall.ui.model;

import java.io.Serializable;

import com.mlz.mlzmall.ui.utils.DataUtils;

import java.util.List;

/**
 * describe :
 * Created by yhf on 2016/5/27.
 * PackageName com.mlz.mlzmall.ui.model.
 * ProjectName mlzmall_android.
 */
public class AddressListBean {

    /**
     * status : 0
     * errors : {}
     * msg : null
     * data : {"total":9,"pageNum":1,"size":5,"pages":2,"list":[{"fullname":"肖斌","shippingTelephone":"181 7046569","regionCode":360828,"address":"高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17820},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17821},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17823},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17824},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17826}]}
     */

    private int status;
    private ErrorsBean errors;
    private String msg;
    /**
     * total : 9
     * pageNum : 1
     * size : 5
     * pages : 2
     * list : [{"fullname":"肖斌","shippingTelephone":"181 7046569","regionCode":360828,"address":"高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17820},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17821},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17823},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17824},{"fullname":"肖斌","shippingTelephone":"18170465691","regionCode":360828,"address":"江西省吉安市万安县高陂镇下东村","postcode":"","defaultAddress":false,"addressId":17826}]
     */

    private DataBean data;

    public int getStatus() {
        return DataUtils.getInt(status);
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public ErrorsBean getErrors() {
        return errors;
    }

    public void setErrors(ErrorsBean errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return DataUtils.getString(msg);
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class ErrorsBean {
    }

    public static class DataBean {
        private int total;
        private int pageNum;
        private int size;
        private int pages;
        /**
         * fullname : 肖斌
         * shippingTelephone : 181 7046569
         * regionCode : 360828
         * address : 高陂镇下东村
         * postcode :
         * defaultAddress : false
         * addressId : 17820
         */

        private List<ListBean> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements Serializable {
            private String fullname;
            private String shippingTelephone;
            private int regionCode;
            private String address;
            private String postcode;
            private boolean defaultAddress;
            private int addressId;

            public String getFullname() {
                return DataUtils.getString(fullname);
            }

            public void setFullname(String fullname) {
                this.fullname = fullname;
            }

            public String getShippingTelephone() {
                return DataUtils.getString(this.shippingTelephone);
            }

            public void setShippingTelephone(String shippingTelephone) {
                this.shippingTelephone = shippingTelephone;
            }

            public int getRegionCode() {
                return DataUtils.getInt(regionCode);
            }

            public void setRegionCode(int regionCode) {
                this.regionCode = regionCode;
            }

            public String getAddress() {
                return DataUtils.getString(address);
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getPostcode() {
                return DataUtils.getString(postcode);
            }

            public void setPostcode(String postcode) {
                this.postcode = postcode;
            }

            public boolean isDefaultAddress() {
                return defaultAddress;
            }

            public void setDefaultAddress(boolean defaultAddress) {
                this.defaultAddress = defaultAddress;
            }

            public int getAddressId() {
                return DataUtils.getInt(addressId);
            }

            public void setAddressId(int addressId) {
                this.addressId = addressId;
            }

            @Override
            public String toString() {
                return "ListBean{" +
                        "fullname='" + fullname + '\'' +
                        ", shippingTelephone='" + shippingTelephone + '\'' +
                        ", regionCode=" + regionCode +
                        ", address='" + address + '\'' +
                        ", postcode='" + postcode + '\'' +
                        ", defaultAddress=" + defaultAddress +
                        ", addressId=" + addressId +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "total=" + total +
                    ", pageNum=" + pageNum +
                    ", size=" + size +
                    ", pages=" + pages +
                    ", list=" + list +
                    '}';
        }
    }
}
